home *** CD-ROM | disk | FTP | other *** search
Text File | 1987-01-18 | 1.5 KB | 85 lines | [TEXT/PJMM] |
- {** STAIR PROGRAM **}
- {Program to layout and draw stair section }
- {Version 0.90 01/18/87 G. Langdon }
-
- {** PROGRAM GLOBALS **}
-
- UNIT Stair_Globals;
-
- INTERFACE
-
- CONST
- {*Window items*}
- ScrollSize = 4;
-
- {*Menus*}
- appleMenu = 1;
- FileMenu = 2;
- EditMenu = 3;
- ScaleMenu = 4;
- PenMenu = 5;
- lastMenu = 5;
-
- {*Dialog items*}
- OKBtn = 1;
- CancelBtn = 2;
- HtLabel = 3;
- FtLabel = 4;
- FtTxt = 5;
- InLabel = 6;
- InTxt = 7;
- LayOutLabel = 8;
- StrtBtn = 9;
- UTypeBtn = 10;
- TopBtn = 11;
- BtmBtn = 12;
- numEdTxt = 2;
- numRGroups = 2;
-
- {*Layout items*}
- StdRiser = 7.50;
- LandingDim = 48.00;
- NosingDim = 1.00;
-
-
- TYPE
-
- fileName = str255;
-
- VAR
-
- {*Window items*}
- done : BOOLEAN;
- theEvent : eventRecord;
- DrawWindow, theWindow : windowPtr;
- URgn : RgnHandle;
- Pict : PicHandle;
- PicBnds, DragBnds, SizeBnds : Rect;
- hsBar, vsBar : ControlHandle;
-
- {*Menu items*}
- theMenus : ARRAY[1..lastMenu] OF MenuHandle;
- penWidth, penHeight : INTEGER;
-
- {*Dialog items*}
- theDialog : DialogPtr;
- theType, ItemHit, theItem : INTEGER;
- ItemHdl : Handle;
- ItemBox : Rect;
- RGroup : ARRAY[1..numRGroups] OF RECORD
- min, max, default : INTEGER
- END;
- FirstDialog : BOOLEAN;
-
- {*Stair items*}
- FtAns, InAns, theStairType : str255;
- AdjRisers : Longint;
- Feet, Inches, Ht, Risers, RiserDim, Treads, TreadDim, pixelIn : Extended;
- SelectedCtl : ARRAY[1..numRGroups] OF RECORD
- value : INTEGER
- END;
- StairType : INTEGER;
-
- IMPLEMENTATION
-
- END.